package com.hellogood.yaohuo.server.serviceImpl;

import java.util.List;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.hellogood.yaohuo.server.mgr.factory.MgrFactory;
import com.hellogood.yaohuo.shared.entity.Group;
import com.hellogood.yaohuo.shared.services.GroupService;

@SuppressWarnings("serial")
public class GroupServiceImpl extends RemoteServiceServlet implements GroupService {

	@Override
	public List<Group> getAllGroupList() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String deleteGroup(String code) {
		return MgrFactory.getInstance().createGroupMgr().removeGroup(code);
	}

	@Override
	public String createGroup(Group group) {
		return MgrFactory.getInstance().createGroupMgr().addNewGroup(group);
	}

}
